package backend

import (
	"go_print_bridge/printer"
)

type PrintBridge struct {
}

// NewApp creates a new App application struct
func NewPrintBridge() *PrintBridge {
	return &PrintBridge{}
}

func (p *PrintBridge) ListPrinters() ([]printer.Printer, error) {
	return printer.GetManager().ListPrinters()
}
func (p *PrintBridge) GetPrinterOptions(name string) (printer.PrinterOptions, error) {
	return printer.GetManager().GetPrinterOptions(name)
}
func (p *PrintBridge) SubmitPrintJob(req printer.PrintJobRequest) ([]int, error) {
	return printer.GetManager().SubmitPrintJob(req)
}
func (p *PrintBridge) GetPrintJobStatus(jobId int) (printer.PrintJobStatus, error) {
	return printer.GetManager().GetPrintJobStatus(jobId)
}
